import { NestFactory } from '@nestjs/core';
import { DeviceMsgDispatchModule } from './device-msg-dispatch.module';
import { DeviceMsgDispatchService } from './device-msg-dispatch.service';

async function bootstrap() {
    const app = await NestFactory.createApplicationContext(DeviceMsgDispatchModule);
    const service = app.get(DeviceMsgDispatchService)
    service.start()
    console.log('Device Msg Dispatch start')

}
bootstrap();
